package com.ccpp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import java.util.LinkedHashMap;
import java.util.Map;

@SpringBootApplication
@EnableEurekaServer
public class RegisterCenterApplicationSlave {
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(RegisterCenterApplicationSlave.class);
		application.setWebApplicationType(WebApplicationType.SERVLET);
		Map<String,Object> properties = new LinkedHashMap<>();
        properties.put("spring.profiles.active","slave");
        application.setDefaultProperties(properties);
		application.run(args);
	}
}
